package com.muyu.remote;

import com.muyu.common.core.constant.ServiceNameConstants;
import com.muyu.common.core.domain.Result;
import com.muyu.remote.factory.OderAddFactory;
import com.muyu.system.domain.DanmoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * OderAddService
 *
 * @author LeYang
 * on 2025/1/21
 */

@FeignClient(
        contextId = "OderAddService",
        value = ServiceNameConstants.ORDER_SERVICE,
        fallbackFactory = OderAddFactory.class,
        path = "/order"
)
public interface OderAddService {

    @PostMapping("/add")
    public Result add(@RequestBody DanmoOrder danmoOrder);

}
